package abc;

public class Login {

    private String user;
    private String passwold;


    public Login(String user,String passwold){
        this.user=user;
        this.passwold=passwold;
    }
   public void set用户(String user){
        this.user=user;
   }
   public String getuser(){
        return user;
   }

    public void setpasswold(String passwold){
        this.passwold=passwold;
    }
    public String getpasswold(){
        return passwold;
    }
    public void login(){
        if (user.equals("3475132346") && passwold.equals("123456789") ){
            System.out.println("登陆成功");
        }else {System.out.println("登录失败,密码或账户错误。");}

    }
}
